//
//  SEVessel.cpp
//  Space Explorer
//
//  Created by Yann Blaudin de Thé on 17/04/13.
//  Copyright (c) 2013 TeaTime. All rights reserved.
//

#include "SEVessel.h"


SEVessel::SEVessel(irr::IrrlichtDevice *device, const irr::core::stringw& disp_name, irr::scene::IAnimatedMesh* mesh) {
    _attractor = NULL;
    
    _irr_node = device->getSceneManager()->addAnimatedMeshSceneNode(mesh);
    
    if (_irr_node) {
        _irr_node->setMaterialFlag(irr::video::EMF_LIGHTING, true);
        _irr_node->setMD2Animation(irr::scene::EMAT_STAND);
        _irr_node->setScale(vec3f(1.0f, 1.0f, 1.0f)/1000.0f);
     }
    
}

SEVessel::~SEVessel() {
    
}

void SEVessel::update(SEClock &ck, const vec3d& cam_pos) {
    
}

irr::scene::IAnimatedMeshSceneNode* SEVessel::getIrrNode() {
    return _irr_node;
}
